#ifndef _TYPE_H_
#define _TYPE_H_

typedef unsigned char uint8_t;
typedef signed char int8_t;

typedef unsigned short uint16_t;
typedef signed short int16_t;

typedef unsigned int uint32_t;
typedef signed int int32_t;

// #define FOSC 11059200L
#define FOSC 12000000L


#define CHECK_BIT(var, pos) (((var) >> (pos)) & 1)
#define SET_BIT(var, pos) ((var) | (1 << (pos)))
#define CLEAR_BIT(var, pos) ((var) & ~(1 << (pos)))
#define BIT_INVERT(var) (~(var))

#endif